#include <ros/ros.h>
#include <custom_msg/custom.h>

int main(int argc, char  *argv[])
{
    ros::init(argc,argv,"send_msg_node");
    ros::NodeHandle nh;
    ros::Publisher pub = nh.advertise<custom_msg::custom>("custom_msg",10);

    ros::Rate loop_rate(1);
    while(ros::ok())
    {
        custom_msg::custom msg;
        msg.name = "qbg";
        msg.age = 30;
        msg.sex = "man";
        pub.publish(msg);
        ros::spinOnce();
        loop_rate.sleep();
    }
    return 0;
}
